package com.niodata.dp.monitor.sharelib.entity.file;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class DataTimelyRate {

  private long id;
  //监控项ID
  private String monitorId;
  //监控项名称
  private String monitorName;

  private Long ownerId;

  private String ownerType;

  //监控目录
  private String dir;
  //检查点，单位分钟
  private Integer checkPoint;
  //及时率
  private double rate;

  //调度时间
  @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  private Date scheduleTime;
  //检查时间
  @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  private Date checkTime = new Date();

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getMonitorId() {
    return monitorId;
  }

  public void setMonitorId(String monitorId) {
    this.monitorId = monitorId;
  }

  public String getMonitorName() {
    return monitorName;
  }

  public void setMonitorName(String monitorName) {
    this.monitorName = monitorName;
  }

  public Long getOwnerId() {
    return ownerId;
  }

  public void setOwnerId(Long ownerId) {
    this.ownerId = ownerId;
  }

  public String getOwnerType() {
    return ownerType;
  }

  public void setOwnerType(String ownerType) {
    this.ownerType = ownerType;
  }

  public String getDir() {
    return dir;
  }

  public void setDir(String dir) {
    this.dir = dir;
  }

  public Integer getCheckPoint() {
    return checkPoint;
  }

  public void setCheckPoint(Integer checkPoint) {
    this.checkPoint = checkPoint;
  }

  public double getRate() {
    return rate;
  }

  public void setRate(double rate) {
    this.rate = rate;
  }

  public Date getScheduleTime() {
    return scheduleTime;
  }

  public void setScheduleTime(Date scheduleTime) {
    this.scheduleTime = scheduleTime;
  }

  public Date getCheckTime() {
    return checkTime;
  }

  public void setCheckTime(Date checkTime) {
    this.checkTime = checkTime;
  }

  @Override
  public String toString() {
    return "DataTimelyRate{"
          + "id=" + id
          + ", monitorId='" + monitorId + '\''
          + ", monitorName='" + monitorName + '\''
          + ", ownerId=" + ownerId
          + ", ownerType=" + ownerType
          + ", dir='" + dir + '\''
          + ", checkPoint=" + checkPoint
          + ", rate=" + rate
          + ", scheduleTime=" + scheduleTime
          + ", checkTime=" + checkTime
          + '}';
  }
}
